<html>
	<head>
		<meta charset="utf-8"></meta>
		<title>BColorDialog</title>
		<link href="./style.css" rel="stylesheet" type="text/css"/>
	</head>
	<body>
		<div class="class" name="BColorDialog">
			<h1>BColorDialog</h1>
			<p>继承自<a href="BDialog.html">BDialog</a></p>
			<p id="resume">BColorDialog是通过调色板获取颜色值的对话框。<a href="#desc">详细</a></p>
			<h2>public</h2>
			<table id="public">
				<tr><td align="right">static BColor </td><td><a href="#ChooseColor(const BString&,const BColor&)">ChooseColor</a>(const BString& title = BString(), const BColor& color = BColor());</td></tr>
				<tr><td align="right">static BColor </td><td><a href="#ChooseColor(BWidget*,const BString&,const BColor&)">ChooseColor</a>(BWidget* parent = 0, const BString& title = BString(), const BColor& color = BColor());</td></tr>
			</table>
			<h2>public</h2>
			<table id="public">
				<tr><td align="right"></td><td><a href="#BColorDialog(BWidget*)">BColorDialog</a>(BWidget* parent = 0);</td></tr>
				<tr><td align="right"></td><td><a href="#~BColorDialog()">~BColorDialog</a>();</td></tr>
				<tr><td align="right">void </td><td><a href="#setColor(BByte, BByte, BByte,BByte)">setColor</a>(BByte r, BByte g, BByte b, BByte a = 255);</td></tr>
				<tr><td align="right">void </td><td><a href="#setColor(const BColor&)">setColor</a>(const BColor& color);</td></tr>
				<tr><td align="right">const BColor& </td><td><a href="#color()">color</a>() const;</td></tr>
				<tr><td align="right">const BColor& </td><td><a href="#chooseColor(const BString&,const BColor&)">chooseColor</a>(const BString& title = BString(), const BColor& color = BColor());</td></tr>
			</table>
			<h2>protected</h2>
			<table id="protected">
				<tr><td align="right">virtual void </td><td><a href="#styleEvent(const BEvent&)">styleEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#freshEvent(const BEvent&)">freshEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#paintEvent(const BEvent&)">paintEvent</a>(const BEvent& event);</td></tr>
				<tr><td align="right">virtual void </td><td><a href="#mousePressEvent(const BMouseEvent&)">mousePressEvent</a>(const BMouseEvent& mouseEvent);</td></tr>
			</table>
			<div id="desc">
				<h2>详细介绍：</h2>
				<p>BColorDialog是通过调色板获取颜色值的对话框。</p><p>信号表：</p><table>
					<tr><td>Signal_ColorChanged</td><td>当前颜色值被改变时发出，值为：BColor color。</td></tr></table>
			</div>
			<h2 id="docs">成员文档：</h2>
			<div id="ChooseColor(const BString&,const BColor&)">
				<h3>static BColor ChooseColor(const BString&amp; title = BString(), const BColor&amp; color = BColor());</h3>
				<p>此方法使全局静态的颜色对话框弹出以获取颜色值。title指定标题文本，color参数设置当前颜色值。</p>
			</div>
			<div id="ChooseColor(BWidget*,const BString&,const BColor&)">
				<h3>static BColor ChooseColor(BWidget* parent = 0, const BString&amp; title = BString(), const BColor&amp; color = BColor());</h3>
				<p>此方法使全局静态的颜色对话框弹出以获取颜色值。parent指定对话框的父控件，title指定标题文本，color参数设置当前颜色值。</p>
			</div>
			<div id="BColorDialog(BWidget*)">
				<h3>BColorDialog(BWidget* parent = 0);</h3>
				<p>构造一个颜色对话框，parent指定其父控件。</p>
			</div>
			<div id="~BColorDialog()">
				<h3>~BColorDialog();</h3>
				<p>析构一个颜色对话框。</p>
			</div>
			<div id="setColor(BByte, BByte, BByte,BByte)">
				<h3>void setColor(BByte r, BByte g, BByte b, BByte a = 255);</h3>
			</div>
			<div id="setColor(const BColor&)">
				<h3>void setColor(const BColor&amp; color);</h3>
				<p>设置当前颜色值。</p>
			</div>
			<div id="color()">
				<h3>const BColor&amp; color() const;</h3>
				<p>获取当前颜色值。</p>
			</div>
			<div id="chooseColor(const BString&,const BColor&)">
				<h3>const BColor&amp; chooseColor(const BString&amp; title = BString(), const BColor&amp; color = BColor());</h3>
				<p>选择颜色操作，此方法为单步模式，直到完成选取操作后才返回。title指定标题文本，color指定初始颜色值。</p>
			</div>
			<div id="styleEvent(const BEvent&)">
				<h3>virtual void styleEvent(const BEvent&amp; event);</h3>
				<p>样式表取值：</p><table>
					<tr><td>Value_Color</td><td>取值为当前颜色，值为：BColor color。</td></tr></table>
			</div>
			<div id="freshEvent(const BEvent&)">
				<h3>virtual void freshEvent(const BEvent&amp; event);</h3>
			</div>
			<div id="paintEvent(const BEvent&)">
				<h3>virtual void paintEvent(const BEvent&amp; event);</h3>
			</div>
			<div id="mousePressEvent(const BMouseEvent&)">
				<h3>virtual void mousePressEvent(const BMouseEvent&amp; mouseEvent);</h3>
			</div>
		</div>
	</body>
</html>